//进行API统一管理
import requests from './request';
import request from '../requests';

//设备分页查询
export function getIntellect(params) {
    return request({
        url: '/equipmentManagement/list',
        method: 'get',
        params:params,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}


// 视频预览对讲
export function getStart(params) {
    return requests({
        url: '/evo-apigw/admin/API/MTS/Video/StartVideo',
        method: 'post',
        params: params,
        headers: {
            'Content-Type': 'application/json',
        },
    })
}

//分页查询设备告警
export function deviceAlarmPageList() {
    return request({
        url: '/equipmentManagement/getQueryDevice',
        method: 'get',
        params: {current: 1, size: 100},
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },

    })
}

//年度告警总数统计
export function yearAlarmChartsData(params) {
    return request({
        url: '/equipmentManagement/annualAlarmsTotality',
        method: 'get',
        params: params,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}
// 安全监管/安全应急点位生成
export function safetyEmergency(params) {
    return requests({
        url: '/api/device/list-by-type',
        method: 'get',
        params: params,
        headers: {
            'X-H3C-ID':'defaultWorkspace',
            'X-H3C-APPKEY':'c21f969b',
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}

export function hazardData (params) {
    return requests({
        url: '/electricity/hazard-data',
        method: 'get',
        params: params,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}